package com.lhm.service;

import com.lhm.dao.TypeDao;
import com.lhm.entity.Type;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TypeServiceImpl implements TypeService {


    @Autowired
    TypeDao typeDao;

    @Override
    public Map<String, Object> addType(Type type) {
        typeDao.addType(type);
        return null;
    }

    @Override
    public List<Type> findAll() {
        return typeDao.findAll();
    }

    @Override
    public String delById(String id) {
        typeDao.delById(id);
        return "删除";
    }
}
